<template>
  <div class="info-container">
    <div class="info-wrapper">
      <div class="avatar">
        <img
          src="../../assets/icons/account.png"
          alt=""
        >
      </div>
      <div class="article-info">
        <div class="username">人民日报</div>
        <div class="time">百家号 | 01-14 06:55</div>
      </div>
    </div>
    <div class="follow">
      <button class="btn">关注</button>
    </div>
  </div>
</template>

<style lang="less">
.info-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  font-weight: 400;
}
.info-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  .avatar img {
    width: 36px;
    height: 36px;
  }
  .article-info {
    margin-left: 12px;
    font-size: 12px;
    color: #a2a2a2;
    .username {
      font-size: 15px;
      color: #333333;
    }
  }
}
.follow {
  height: 28px;
  width: 57px;
  button {
    width: 100%;
    height: 100%;
    background: #3897f0;
    color: #fff;
    font-size: 14px;
    line-height: 28px;
    border-radius: 3px;
    border-width: 0;
  }
  .btn {
    &:active {
      opacity: 0.5;
    }
  }
}
</style>
